<?php


/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Game
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
 
?>

<h2><?php echo $this->translate("Game Plugin") ?></h2>

<?php if( count($this->navigation) ): ?>
  <div class='tabs'>
    <?php
      // Render the menu
      //->setUlClass()
      echo $this->navigation()->menu()->setContainer($this->navigation)->render()
    ?>
  </div>
<?php endif; ?>

<p>
  <?php echo $this->translate("Game developers submit games to distributors, which then distribute them to hundreds of flash portals around the world via their API system. The plugin has built-in tool which allow you to quickly import games to your site from these distributors.") ?>
</p>
<br />




<table class='admin_table'>
  <thead>
    <tr>
      <th><?php echo $this->translate("Name") ?></th>
      <th class='admin_table_options'><?php echo $this->translate("Options") ?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($this->distributors as $item): // $this->string()->chunk($item->getTitle(), 5) ?>
      <tr>
        <td class='admin_table_bold'><?php echo $item->getTitle() ?></td>
        <td><?php /* echo $this->htmlLink(
            array('route' => 'admin_default', 'module' => 'game', 'controller' => 'distributors', 'action' => 'edit', 'type' => $item->getIdentity()),
            $this->translate("edit settings"),
            array()) */ ?>
            
            <?php echo $this->htmlLink(
            array('route' => 'admin_default', 'module' => 'game', 'controller' => 'distributors', 'action' => 'import', 'type' => $item->type),
            $this->translate("import games"),
            array()) ?>
            
        </td>
      </tr>
    <?php endforeach; ?>
  </tbody>
</table>



